<html>
<head>
	<title>Excersise 8</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>

	var number = 99;	
	numStr = number.toString();

if (number < 10)
{
switch (number)
{
case 0: jsConsole.writeLine("zero");break;
case 1: jsConsole.writeLine("one");break;
case 2: jsConsole.writeLine("two ");break;
case 3: jsConsole.writeLine("three");break;
case 4: jsConsole.writeLine("four");break;
case 5: jsConsole.writeLine("five");break;
case 6: jsConsole.writeLine("six");break;
case 7: jsConsole.writeLine("seven");break;
case 8: jsConsole.writeLine("eight");break;
case 9: jsConsole.writeLine("nine");break;

}
}
else
{
if ((number > 9) && (number < 100))
{
jsConsole.writeLine("asdasd")
}
}



switch (numStr.charAt(0))
{
case "1": jsConsole.writeLine("one hundred");break;
case "2": jsConsole.writeLine("one hundred");break;
case "3": jsConsole.writeLine("one hundred");break;
case "4": jsConsole.writeLine("one hundred");break;
case "5": jsConsole.writeLine("one hundred");break;
case "6": jsConsole.writeLine("one hundred");break;
case "7": jsConsole.writeLine("one hundred");break;
case "8": jsConsole.writeLine("one hundred");break;
case "9": jsConsole.writeLine("one hundred");break;
}



jsConsole.writeLine(numStr.charAt(0));
jsConsole.writeLine(numStr.charAt(1));
jsConsole.writeLine(numStr.charAt(1));
	</script>
</body>
</html>
